package com.bluedot.www.core.pojo.DO;

import java.io.Serializable;

/**
 * <p>
 * 角色和权限的中间表
 * </p>
 *
 * @author zhouxuan
 * @since 2021-08-07
 */
public class RoleRight implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 角色id
     */
    private Long roleId;

    /**
     * 权限id
     */
    private Long rightId;

    public RoleRight(Long roleId, Long rightId) {
        this.roleId = roleId;
        this.rightId = rightId;
    }


    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getRightId() {
        return rightId;
    }

    public void setRightId(Long rightId) {
        this.rightId = rightId;
    }

    @Override
    public String toString() {
        return "RoleRight{" +
                "roleId=" + roleId +
                ", rightId=" + rightId +
                "}";
    }
}
